<?php namespace Home\Controller;
use Hdphp\Controller\Controller;
//地址添加控制器
class AddressController extends Controller{
	
//	地址添加
public function add(){
//	sp($_SESSION);die;
	if(IS_POST){
	$address=new \Common\Model\Address;
	if(!$address->store()){
	View::error($address->getError());
}
View::success('添加成功',U('BuycarTwo/index'));

	}
	
	
	View::make();
}
	
	
	
	
	
	
	
	
	
	
}
